const express=require('express')

const router=express.Router()

//导入令牌验证中间件
const checkToken=require('../../../middleware/checkToken')

//导入处理函数
let {create,getAll}=require('../../../controller/order')
//订单表相关请求在这里处理
router.post('/create',checkToken,create)
router.get('/getAll/:userId',checkToken,getAll)

module.exports=router